package com.thiscc.sum.constance;

/**
 * 总结类型,日，周，月,年
 * @createTime 2014-12-16
 * @since 1.0
 * @author Einstein
 */
public enum Type {
	/**
	 * 日总结
	 */
	Day,
	/**
	 * 周总结
	 */
	Week,
	/**
	 * 月总结
	 */
	Month,
	/**
	 * 年总结
	 */
	Year;
	public String toString() {
		if (this.ordinal() == Day.ordinal()) {
			return "日总结";
		} else if (this.ordinal() == Week.ordinal()) {
			return "周总结";
		} else if (this.ordinal() == Month.ordinal()) {
			return "月总结";
		} else if (this.ordinal() == Year.ordinal()) {
			return "年总结";
		}
		return super.toString();
	}
}
